<template>
  <!-- <a-button @click="handleClick" icon="download" :disabled="renderOptions.disabled" shape="circle" class="theme--perfect-button"></a-button> -->
  <vxe-button @click="handleClick" style="margin-right: 12px;" icon="vxe-icon--download" circle></vxe-button>
</template>

<script>
export default {
  name: 'VxeToolbarExport',
  props: {
    renderOptions: Object,
    params: Object,
    toolbarProps: {
      type: Object,
      default: () => { }
    }
  },
  data() {
    return {
      defaultProps: {
        title: ''
      }
    }
  },
  methods: {
    handleClick() {
      const { events = {}} = this.renderOptions
      const { button, $grid } = this.params
      events.click(button, $grid)
    }
  },
  mounted() {
    this.defaultProps = Object.assign({}, this.defaultProps, this.toolbarProps)
  }

}
</script>
<style>
.z-vxe-toolbar .vxe-button--item{
  margin-left: 0px !important;
}
</style>
